<?php

/**
 * @package examples
 */

include 'Zend/Loader.php';
Zend_Loader::registerAutoload();
include realpath(dirname(__FILE__) . '/../../application/models/TReservation.php');

// TODO : Régler le souci de l'adapteur

//$appPath = dirname(dirname(dirname(__FILE__))) . '/application';
//$configMain = new Zend_Config_Ini($appPath . '/config/config.ini', 'dev');
//Zend_Registry::set('config', $configMain);

$soap = new Zfbook_Reservation_SoapServer();
var_dump($soap->getReservations());
var_dump($soap->get(2, 1, '2008-08-18 10:00:00'));
var_dump($soap->getRooms());